import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Index',
    component: () => import('@/views/index.vue'),
  },
  {
    path: '/Test',
    name: 'Test',
    component: () => import('@/views/test.vue'),
  },
  {
    path: '/news',
    name: 'news',
    component: () => import('@/views/news/index.vue'),
  },
  {
    path: '/enterprise',
    name: 'enterprise',
    component: () => import('@/views/enterprise/index.vue'),
  },
  {
    path: '/smartMgmt',
    name: 'smartMgmt',
    component: () => import('@/views/smartMgmt/index.vue'),
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router
